// 定义 DB_JavaTypeMap 类
class DB_JavaTypeMap {
  constructor(
    public dbType: string,
    public javaType: string,
    //可空java数据类型名
    public javaTypeNull: string,
    //不可空java数据类型名
    public javaTypeNotNull: string,
    public importClass: string | null,
    public description: string
  ) {
  }
}

// 初始化 Map
export const DB_JavaType = new Map<number, DB_JavaTypeMap>([
  [12, new DB_JavaTypeMap("VARCHAR", "String", "String", "String", null, "字符串类型")],
  [-5, new DB_JavaTypeMap("BIGINT", "Long", "Long", "long", null, "长整数类型")],
  [4, new DB_JavaTypeMap("INTEGER", "Integer", "Integer", "int", null, "整数类型")],
  [3, new DB_JavaTypeMap("DECIMAL", "BigDecimal", "BigDecimal", "BigDecimal", "java.math.BigDecimal", "高精度数字类型")],
  [16, new DB_JavaTypeMap("BOOLEAN", "Boolean", "Boolean", "boolean", null, "布尔类型")],
  [-7, new DB_JavaTypeMap("BIT", "Boolean", "Boolean", "boolean", null, "布尔类型")],
  [2005, new DB_JavaTypeMap("CLOB", "CLOB", "CLOB", "Clob", "java.sql.Clob", "CLOB类型")],
]);
